package com.atguigu.elasticsearch_demo.model;

/**
 * 跟my_index索引库文档映射
 * @author: atguigu
 * @create: 2023-12-12 14:17
 */
public class Goods {

    private String id;
    private String title;
    private String brand;
    private String desc;
    private Long price;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", brand='" + brand + '\'' +
                ", desc='" + desc + '\'' +
                ", price=" + price +
                '}';
    }
}
